if (TARGET tinyusb_device)
add_executable(ECGdata
        ECGdata.c
        )

# pull in common dependencies
target_link_libraries(ECGdata pico_stdlib hardware_spi)

# create map/bin/hex file etc.
pico_add_extra_outputs(ECGdata)

# add url via pico_set_program_url
example_auto_set_url(ECGdata)

# enable usb output, disable uart output
pico_enable_stdio_usb(ECGdata 1)
pico_enable_stdio_uart(ECGdata 0)

elseif(PICO_ON_DEVICE)
    message(WARNING "not building hello_usb because TinyUSB submodule is not initialized in the SDK")
endif()


